<link rel="stylesheet" type="text/css" href="assets/bootstrap-datepicker/css/datepicker.css"/>
<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<section id="main-content">
  <section class="wrapper">
    <!--state overview end-->
    <div class="row">
      <div class="col-lg-12">
        <section class="panel">
          <header class="panel-heading">
            用户信息
          </header>
          <div class="panel-body">
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">公司</label>
              <div class="col-sm-10">
                <select ng-model="baseUser.departmentUser.companyCode" class="form-control"  ng-change="changeDept(baseUser.departmentUser.companyCode)" certus-required>
                  <option ng-repeat="x in companySelect" value="{{x.companyId}}">{{x.company}}
                  </option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">所属部门</label>
              <div class="col-sm-10">
                <select ng-model="baseUser.departmentUser.departmentCode" class="form-control" certus-required>
                  <option ng-repeat="x in departmentSelect" value="{{x.departmentCode}}">{{x.departmentName}}
                  </option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">岗位名称</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="baseUser.positonName" certus-required>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">座位号</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="baseUser.seatCode">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">员工姓名</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="baseUser.userName" certus-required>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">员工性别</label>
              <div class="col-sm-10">
                <select ng-model="baseUser.sex" class="form-control" certus-required>
                  <option ng-repeat="x in sexSelect" value="{{x.sex}}">{{x.sexName}}</option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">出生日期</label>
              <div class="col-sm-10">
                <input id="datetime" type="text" ng-model="baseUser.birthday" class="form-control" certus-required>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">婚姻状况</label>
              <div class="col-sm-10">
                <select ng-model="baseUser.isMarriage" class="form-control" certus-required>
                  <option ng-repeat="x in marriageSelect" value="{{x.isMarriage}}">
                    {{x.marriageName}}
                  </option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">手机号码</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" onblur="telNo(this.id)" id="phone" ng-model="baseUser.phoneNumber" certus-required>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">微信号</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="baseUser.weChatNum">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">QQ号</label>
              <div class="col-sm-10">
                <input type="text" class="form-control"  ng-model="baseUser.qqNum">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">邮件地址</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="baseUser.email" certus-required>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">固定电话-分机号</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="baseUser.telephoneNumber">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">入职时间</label>
              <div class="col-sm-10">
                <!--<input type="text" class="form-control" ng-model="baseUser.enrollTime" certus-required>-->
                <input id="datetime1" type="text" ng-model="baseUser.enrollTime" class="form-control" certus-required>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">常驻地址</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="baseUser.basedArea" certus-required>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">英文名</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="baseUser.englishName">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">在职状态</label>
              <div class="col-sm-10">
                <select ng-model="baseUser.onPost" class="form-control" certus-required>
                  <option ng-repeat="x in onPostSelect" value="{{x.onPost}}">{{x.onPostName}}
                  </option>
                </select>
              </div>
            </div>
           
          </div>
        </section>
        <section class="panel">
          <div class="panel-body">
              <p class="default-buttons">
                  <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                  <a href="javascript:void(0);" class="button-next  btn btn-success" ng-click="userOperate()">确认提交</a>
                </p>
          </div>
        </section>
      </div>
    </div>
  </section>
</section>
<!-- 当前页面js文件引入 -->
<script src="js/office/index.js"></script>